package net.jjjshop.common.service.lbt;


import com.baomidou.mybatisplus.extension.service.IService;
import net.jjjshop.common.entity.lbt.LbUserWalletEntity;
import net.jjjshop.framework.common.service.BaseService;

import java.math.BigDecimal;

/**
 * 用户钱包表 业务接口
 * +----------------------------------------------------------------------
 */
public interface LbUserWalletService extends BaseService<LbUserWalletEntity> {

    Boolean add(Integer uid);
    Boolean edit(LbUserWalletEntity userWalletEntity);
    LbUserWalletEntity getUserWalletInfo(Integer uid);
    Boolean operationScore(BigDecimal score, Integer uid, String type);
    Boolean operationScoreFreeze(BigDecimal score, Integer uid, String type);
    Boolean operationDevote(BigDecimal devote, Integer uid, String type);

    Boolean operationMoney(BigDecimal score, Integer uid, String type);
    Boolean operationEntityMoney(BigDecimal devote, Integer uid, String type);

    Boolean operationTotalMoney(BigDecimal total_money, Integer uid, String type);


    BigDecimal getSum(String money);

    BigDecimal selectTzTotal();

    /**
     * 查询市场权益卡
     * @return
     */
    BigDecimal selectMarketTz();
}

